sp614x / optifine

1.81k stars 418 forks source link

CIT regex anchors do not work #1494

Open Skuhoo opened 6 years ago

Skuhoo commented 6 years ago

It would appear that beginning anchors (^) in regex do not work with CIT.

I was having trouble getting a bit of regex to work in my pack, so I created a test to pinpoint the issue.

The test pack I created has the following properties file: test.properties

items=263
nbt.display.Lore.1=regex:^test
texture=test

There's also a 16x16 yellow png file called "test" within the same directory.

With the pack on, I created the following item: image As expected, the properties file matched the coal item.

But, I then tried creating a new item: image Although the regex is perfectly valid and should work, this new piece of coal does not get the yellow texture.

Note: although the lore text is rendered purple & italicized, the actual NBT data is void of any formatting codes image Meaning Minecraft just renders unformatted lore text as purple & italicized and shouldn't affect the test.

Skuhoo commented 6 years ago

Looks like ending anchors don't work either:

items=263
nbt.display.Lore.1=regex:test$
texture=test

image image