Given the code: ``` s = ("firstTime"):gsub("^%l", string.upper) ``` Expected: `s = "FirstTime"` Actual: `s = "FIRSTTime"` It seems that the anchor only causes a break when the expression fails to match.
Given the code:
Expected:
s = "FirstTime"Actual:
s = "FIRSTTime"It seems that the anchor only causes a break when the expression fails to match.