Title: [Plugin: WordPress SEO by Yoast] JavaScript Error
Last modified: August 20, 2016

---

# [Plugin: WordPress SEO by Yoast] JavaScript Error

 *  [Brandon Dove](https://wordpress.org/support/users/brandondove/)
 * (@brandondove)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-javascript-error/)
 * WordPress version: 3.4.1
    WordPress SEO version: 1.2.4
 * I did this: Put a + character in the focus keyword field and saved the post. 
   The regex started throwing a javascript error. The error I got was the following:
 * “SyntaxError: invalid quantifier
    [Break On This Error] kwregex = new RegExp(“([-/])(“
   +kw+”)([-/])?” );”
 * [http://wordpress.org/extend/plugins/wordpress-seo/](http://wordpress.org/extend/plugins/wordpress-seo/)

The topic ‘[Plugin: WordPress SEO by Yoast] JavaScript Error’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [Brandon Dove](https://wordpress.org/support/users/brandondove/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-javascript-error/)
 * Status: not resolved