3 ms·
Aren't these [0] lines wrong? "[\\b\\d][Aa]bbo[\\bA-Z\\d]", \b inside a set (square brackets) is a backspace character [1], not a word boundary. I don't think
by neuroticnews25 1y ago
Aren't these [0] lines wrong?
"[\\b\\d][Aa]bbo[\\bA-Z\\d]",
\b inside a set (square brackets) is a backspace character [1], not a word boundary. I don't think it was intended? Or is the regex flavor used here different?
[0] https://github.com/BlueFalconHD/apple_generative_model_safety_decrypted/blob/b27b3b3a39263fad29a2fdcb05b21f9e7449a60e/decrypted_overrides/com.apple.gm.safety_deny.input.code_intelligence.base/AssetData/metadata.json#L174-L182 https://github.com/BlueFalconHD/apple_generative_model_safet...
[1] https://developer.apple.com/documentation/foundation/nsregularexpression#:~:text=Match%20a%20BACKSPACE%2C%20%5Cu0008 https://developer.apple.com/documentation/foundation/nsregul...
- BlueFalconHD 1y agoThe framework loading these is in Swift. I haven’t gotten around to the logic for the JSON/regex parsing but ChatGPT seems to understand the regexes just fine