as the forward slash is being seen as a pattern delimiter, you will have to escape the middle forward slash.
Otherwise the js-parser will see it as the end of your expression and therefore mark the remainder of the expression as being unexpected…
If you’re not comfortable doing this you can rewrite it this way:
var patt1 = new RegExp('Use of a scribe/word processing', 'i');
test_B = patt1.test(importText));