equal
deleted
inserted
replaced
80 |
80 |
81 const Item arg(m_operands.first()->evaluateSingleton(context)); |
81 const Item arg(m_operands.first()->evaluateSingleton(context)); |
82 if(arg) |
82 if(arg) |
83 input = arg.stringValue(); |
83 input = arg.stringValue(); |
84 |
84 |
85 const QString replacement(m_replacementString.isNull() ? parseReplacement(regexp.numCaptures(), context) |
85 const QString replacement(m_replacementString.isNull() ? parseReplacement(regexp.captureCount(), context) |
86 : m_replacementString); |
86 : m_replacementString); |
87 |
87 |
88 |
88 |
89 return AtomicString::fromValue(input.replace(regexp, replacement)); |
89 return AtomicString::fromValue(input.replace(regexp, replacement)); |
90 } |
90 } |