Prevent MacOS from inserting a period after two spaces

How to disable the feature of MacOS that auto inserts a period after typing two spaces