cdotyone / mochaui

development tree for MochaUI
http://mochaui.org/demo/
Other
290 stars 83 forks source link

Regexp (getTitle) is eating uppercase S #88

Closed cleankod closed 13 years ago

cleankod commented 13 years ago

When a title of response is like this:

Strony nie znaleziono

which is the usual Polish Error404 message, the regexp: var getTitle = new RegExp('[\n\r\s]</em>(._)[\n\r\s]*', 'gmi'); leaves me with: trony nie znaleziono

cdotyone commented 13 years ago

Replace with '[\n\r\s]<em>(.</em>)[\n\r\s]*'

Need to escape the \s

Branches develop and develop-0.9.8 branches patched