You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
str = "i said 'the first word should be cap'."
=> "i said 'the first word should be cap'."
str.titleize
=> "I Said 'the First Word Should Be Cap'."
Expected behavior
"I Said 'The First Word Should Be Cap'."
Actual behavior
"I Said 'the First Word Should Be Cap'."
System configuration
Rails version: 5.0.1
Ruby version: 2.3.3
It seems like this is the commit that introduced this behavior - the lookbehind operator added in the PR doesn't match any character behind a single quotation mark, even when there's whitespace before that quotation mark.
I'm no expert in regex, but I can create a PR to revert to the previous behavior and add a test case for this.
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Expected behavior
"I Said 'The First Word Should Be Cap'."
Actual behavior
"I Said 'the First Word Should Be Cap'."
System configuration
Rails version: 5.0.1
Ruby version: 2.3.3
It seems like this is the commit that introduced this behavior - the lookbehind operator added in the PR doesn't match any character behind a single quotation mark, even when there's whitespace before that quotation mark.
I'm no expert in regex, but I can create a PR to revert to the previous behavior and add a test case for this.
The text was updated successfully, but these errors were encountered: