You are right, fixed.

--
Sincerely,  
Alexander Kryklia
Отправлено при помощи Sparrow (http://www.sparrowmailapp.com/?sig)


вторник, 24 декабря 2013 г. в 16:35, Anton Stupak написал:

> In common/lib/xmodule/xmodule/js/src/problem/edit.coffee:
> > @@ -247,13 +247,17 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor > string += ' <formulaequationinput />\n'; > string += '</numericalresponse>\n\n'; > } else { > - var answers = []; > - > + var first_answer = answersList.shift(); > + if (first_answer[0] === '|') { // this is regexp case > + string = '<stringresponse answer="' + first_answer.slice(1) + '" type="ci regexp" >\n'  
> You should trim after slicing. There is possible white-space between | and start of regular expression (See edit_spec.coffee (https://github.com/edx/edx-platform/blob/9343ff8b39874bbed7a3754f84785709134a3abc/common/lib/xmodule/xmodule/js/spec/problem/edit_spec.coffee#L351)).  
>  
> —
> Reply to this email directly or view it on GitHub (https://github.com/edx/edx-platform/pull/1948/files#r8543694).
>  
>  
>