Open Bug 1327764 Opened 7 years ago Updated 2 years ago

Regexp replace in scratchpad doesn't work for linebreaks

Categories

(DevTools :: Source Editor, defect, P3)

defect

Tracking

(Not tracked)

People

(Reporter: arni2033, Unassigned)

Details

>>>   My Info:   Win7_64, Nightly 49, 32bit, ID 20160526082509
regexp replace in scratchpad doesn't work for /[\r\n]+/ but works for \n

>>>
STR_1:  (bad)
1. Open scratchpad (Shift+F4). 
2. Select all text there, type "a\ns\nd\nf" where "\n" is linebreak
3. Press Ctrl+Shift+R to replace strings in the code
4. Type "/[\r\n]+/" without quotes, press Enter
   type "1" without quotes, press Enter


STR_2:  (good)
1. Open scratchpad (Shift+F4)
2. Select all text there, type "a\ns\nd\nf" where "\n" is linebreak
3. Press Ctrl+Shift+R to replace strings in the code
4. Type "\n" without quotes, press Enter
   type "1"  without quotes, press Enter


AR:  STR_1:  "a\ns\nd\nf",   STR_2:  "a2s2d2f"
ER:  STR_1:  "a1s1d1f".  Reference of this behavior: STR_2
No longer blocks: 1277113
Component: Untriaged → Developer Tools: Scratchpad
Scratchpad triage. Filter on TRIAGE-JD201705
Priority: -- → P3
This behavior is handled by the source editor and is not specific to Scratchpad (same issue with the style editor).
Component: Developer Tools: Scratchpad → Developer Tools: Source Editor
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.