Skip to content

Commit

Permalink
Clean up regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnstn committed Apr 11, 2023
1 parent fc904d2 commit ce26b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/src/sandbox/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ const Sandbox = forwardRef( function Sandbox(
// Avoid comma issues with props.viewportProps.
const addViewportProps = viewportProps
.trim()
.replace( /(^[^,]) /, ', $1' );
.replace( /(^[^,])/, ', $1' );

const htmlDoc = (
<html lang={ lang }>
Expand Down

0 comments on commit ce26b52

Please sign in to comment.