Skip to content

Commit

Permalink
Update pg_search_dmetaphone function to fix backslash-escaping issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nertzy committed Apr 1, 2013
1 parent 4ffb485 commit ec48650
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/dmetaphone.sql
Original file line number Diff line number Diff line change
@@ -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.