Browse files

Update pg_search_dmetaphone function to fix backslash-escaping issue

  • Loading branch information...
1 parent 4ffb485 commit ec48650c9ba34e05bc38aa053f216cee230a8494 @nertzy nertzy committed Apr 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sql/dmetaphone.sql
View
2 sql/dmetaphone.sql
@@ -1,3 +1,3 @@
CREATE OR REPLACE FUNCTION pg_search_dmetaphone(text) RETURNS text LANGUAGE SQL IMMUTABLE STRICT AS $function$
- SELECT array_to_string(ARRAY(SELECT dmetaphone(unnest(regexp_split_to_array($1, E'\\\\s+')))), ' ')
+ SELECT array_to_string(ARRAY(SELECT dmetaphone(unnest(regexp_split_to_array($1, E'\\s+')))), ' ')
$function$;

0 comments on commit ec48650

Please sign in to comment.